package com.bh.order.convert;

import com.bh.order.domain.JcOrder;
import com.bh.order.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @Description
 * @Author slx
 * @Date 2024/3/3
 */
@Mapper(componentModel = "spring")
public interface JcOrderConvert {
    JcOrderVO toVO(JcOrder jcOrder);

    JsOrderToAndReceiveVo toReceiveVo(JcOrder jcOrder);

    JcOrder toDO(JcOrderVO jcOrderVO);

    JcOrder toDO(JcOrderImportVo importVo);

    JcOrder toDO(JcOrderAddVo jcOrderAddVo);

    JcOrderRowVo toRowVo(JcOrder jcOrder);

    JcOrderCommonVo toCommonVo(JcOrder jcOrder);

    List<JcOrderVO> toVOList(List<JcOrder> jcOrderList);

    List<JcOrderCustVO> toCustVoList(List<JcOrderVO> orderVOS);

    List<JcOrder> toDOList(List<JcOrderVO> jcOrderVOList);

    JcDeliveryOrderVo toDeliveryOrderVo(JsOrderToAndReceiveVo jsOrderToAndReceiveVo);

    JcOrderSysApiVO toSysApiVO(JcOrderVO jcOrderVO);
}
